package com.sh.rbac.core.common.exception;

import com.sh.rbac.core.common.result.ResultCodeEnum;

/**
 * 自定义异常
 *
 * @author lucky
 * @since 2024-04-06 15:18
 */
public class CustomException extends RuntimeException {

    public CustomException(String message) {
        super(message);
    }

    public CustomException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
    }
}
